package designPattern.builderPattern;

public class HuaWeiBuilder implements PhoneBuilder {

	private Phone phone = new Phone();

	@Override
	public void buildCpu() {
		//封装复杂的构建过程
		phone.setCpu("HuaWeiCpu");
	}

	@Override
	public void buildMemory() {
		//封装复杂的构建过程
		phone.setMemory("HuaWeiMemory");
	}

	public Phone getPhone() {
		return phone;
	}
}
